Set PARALLEL_UPDATES to 0 for all zwave_js platforms#71626
Set PARALLEL_UPDATES to 0 for all zwave_js platforms#71626balloob merged 1 commit intohome-assistant:devfrom
Conversation
|
Hey there @home-assistant/z-wave, mind taking a look at this pull request as it has been labeled with an integration ( |
| from .discovery import ZwaveDiscoveryInfo | ||
| from .entity import ZWaveBaseEntity | ||
|
|
||
| PARALLEL_UPDATES = 0 |
There was a problem hiding this comment.
I thought this was already the default for any async integration.
There was a problem hiding this comment.
Yep, looks like it
core/homeassistant/helpers/entity_platform.py
Line 141 in bf77c00
There was a problem hiding this comment.
"Any async integration", no we don't check that. We check for async_update attribute. Which not all async integrations may use.
core/homeassistant/helpers/entity_platform.py
Lines 422 to 426 in bf77c00
There was a problem hiding this comment.
right and to be more explicit, we don't rely on polling at all, it's all push, so there are no platforms with an update method, sync or async
There was a problem hiding this comment.
Aaah yeah, ok that default is not very good. Maybe we also set it to 0 if we don't find any update method ? (So set it to 1 if we find "update" as a method.)
There was a problem hiding this comment.
would that still be potentially a concern if the services are synchronous?
There was a problem hiding this comment.
Will merge this and think about it some more.
Proposed change
The
zwave_jsintegration can let the driver handle parallel-ness of platform service calls. We should just fire and go.A separate PR will be made to allow for parallel
zwave_jsservice callsType of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: